//
//  LeftBarButtonItem.m
//  One
//
//  Created by mac on 16/5/25.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "LeftBarButtonItem.h"

@implementation LeftBarButtonItem

- (id)init
{
    self = [super init];
    if (self) {
        
        UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
        [button setImage:[UIImage imageNamed:@"searchIcon_25x25_"] forState:UIControlStateNormal];
        button.frame = CGRectMake(0, 0, 25, 25);
        
        [button addTarget:self action:@selector(searchView) forControlEvents:UIControlEventTouchUpInside];
        
        
        self.customView =button;
        
    }
    return self;
}

- (void)searchView
{
    NSLog(@"123");
}

@end
